<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!doctype html>
<html>
<head>
    <%@ include file="common/head.jspf" %>
    <title>账 户</title>
</head>
<body>
<nav class="navbar text-nav" role="navigation">
    <a class="pull-left btn-back" href="/"><i class="icon-chevron-left"></i></a>
    <div class="center-block nav-title">账 户</div>
</nav>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-offset-1 col-xs-10">
            <p>&nbsp;</p>
            <a class="btn btn-pa pull-right" href="pwPage">修改密码</a>

            <p>电话号码：<c:out value="${sessionScope.user.mobilephone}"/></p>

            <p>真实姓名：<c:out value="${sessionScope.user.username}"/></p>

            <p>注册时间：<fmt:formatDate value="${sessionScope.user.regtime}" pattern="yyyy年MM月dd日"/></p>

            <p>剩余积分：<c:out value="${sessionScope.user.credit}"/></p>
        </div>
    </div>
    <c:forEach items="${il}" var="l">
    <div class="row">
        <div class="container-full">
            <div class="row">
                <div class="col-xs-offset-1 col-xs-5">
                    车牌号：<c:out value="${l.carno}"/>
                </div>
                <div class="col-xs-4">
                    获得<c:out value="${l.credit}"/>积分
                </div>
            </div>
            <div class="row">
                <div class="col-xs-offset-1 col-xs-10">
                    有效日期：<fmt:formatDate value="${l.starttime}" pattern="yyyy.MM.dd"/>
                    至
                    <fmt:formatDate value="${l.endtime}" pattern="yyyy.MM.dd"/>
                </div>
            </div>
        </div>
    </div>
    </c:forEach>
    <div class="row">
        <div class="col-xs-offset-1 col-xs-10">
            <a class="btn btn-pa pull-right" href="addcarPage">添加车牌号</a>
        </div>
    </div>
</div>
</body>
</html>
